<script setup lang="ts">
import { ref } from "vue";
const age = ref(21);
const person = ref({ name: "xx", age: 12 });
const changes = () => {
  person.value.age++;
};
</script>

<template>
  <div class="app-page"></div>
  <div>{{ age }}</div>
  <div>姓名:{{ person.name }},年龄：{{ person.age }}</div>

  <button @click="changes">修改</button>
</template>

<style lang="css" scoped></style>
